﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="buyappperview.aspx.cs"
    Inherits="LabMS.Web.Equipment.common.buyappperview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>购买申请查看</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <link href="../../css/jquery.wysiwyg.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script src="../../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript">
        function back()
        {
            if(this.opener==null)
            {
                window.location.href='buyapplist.aspx'
            }
            else
            {
                this.window.close();
            }
        }
        function modify()
        {
           RedirectURL(window,'./buyappmodify.aspx?ID='+document.getElementById("IDHF").value);
        }
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <asp:Label ID="ERRLbl" runat="server" Visible="false"></asp:Label>
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        <a href="buyapplist.aspx">购买申请列表</a></label>&gt;仪器购买申请信息
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <% if (UserType == "teacher")
                   {%>
                <asp:Button ID="AppBtn" runat="server" CssClass="button" Text="申请" OnClick="AppBtn_Click" />
                <asp:Button ID="ConAppBtn" runat="server" CssClass="button" Text="撤销申请" OnClick="AppBtn_Click" />
                <%} %>
                <% if (UserType == "mana")
                   {%>
                <asp:Button ID="PassAppBtn" runat="server" CssClass="button" Text="审批[通过]" OnClick="AppBtn_Click" />
                <asp:Button ID="UnPassAppBtn" runat="server" CssClass="button" Text="审批[不通过]" OnClick="AppBtn_Click" />
                <%} %>
                <% if (UserType == "teacher")
                   {%>
                <input id="mondifybtn" runat="server" class="button" value="修改" type="button" onclick='modify()' />
                <%} %>
                <asp:Button ID="DelBtn" runat="server" CssClass="button" Text="删除" OnClick="DelBtn_Click" />
                <input id="concelbtn" runat="server" type="button" class="button" onclick="back()"
                    value="返回" />
            </p>
            <table>
                <tr>
                    <td>
                        <label class="itemTitle">
                            申请购买类型：<span style="color: Red">*</span></label>
                    </td>
                    <td>
                        <asp:DropDownList ID="TypeDDL" runat="server" Enabled="false">
                            <asp:ListItem Text="消耗品" Value="xiaohaopin"></asp:ListItem>
                            <asp:ListItem Text="低值品" Value="lowvalue"></asp:ListItem>
                            <asp:ListItem Text="仪器" Value="yiqi"></asp:ListItem>
                            <asp:ListItem Text="贵重仪器" Value="guizhongyiqi"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            分类号码：<span style="color: Red">*</span></label>
                    </td>
                    <td>
                        <asp:Label ID="NumbersLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            仪器名称：<span style="color: Red">*</span></label>
                    </td>
                    <td>
                        <asp:Label ID="NameLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            申请购买数量：<span style="color: Red">*</span></label>
                    </td>
                    <td>
                        <asp:Label ID="NumLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            申请备注：</label>
                    </td>
                    <td>
                        <asp:Label ID="AppCommentLbl" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="paneltoCheck" Visible="false" runat="server">
                <table>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                审核意见：</label></td>
                        <td>
                            <asp:TextBox ID="VerifyComment" Columns="80" Rows="20" TextMode="MultiLine" ToolTip="审核意见"
                                runat="server"></asp:TextBox></td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="panelExamine" Visible="false" runat="server">
                <table>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                审核人：</label></td>
                        <td>
                            <asp:Label ID="VerifyPerson" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                审核时间：</label></td>
                        <td>
                            <asp:Label ID="VerifyTime" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                审核意见：</label></td>
                        <td>
                            <asp:Label ID="lbVerifyComment" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
        <asp:HiddenField ID="IDHF" runat="server" />
    </form>

    <script type="text/javascript" src="../../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript" src="../../js/jQuery/jquery.wysiwyg.js"></script>

    <script type="text/javascript">
          $(function(){
            if($("#VerifyComment").length!=0)
            {
            $("#VerifyComment").wysiwyg();}

        });
    </script>

</body>
</html>
